﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AddCom.aspx.cs" Inherits="Agency_AddCom" %>

<%@ Register Src="../System/DbPageFlip.ascx" TagName="DbPageFlip" TagPrefix="uc1" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>选择企业进入投标</title>
    <link href="../System/css.css" rel="stylesheet" type="text/css" />

    <script language="javascript">
        function SelectAll()
        {
             var i;
             var a = document.getElementsByName('chkSelect');
             for( i = 0;i < a.length;i++)
            {
                a[i].checked = true; 
            }           
        }
        function ClearAll()
        {
            var i;
             var a = document.getElementsByName('chkSelect');
             
             for( i = 0;i < a.length;i++)
            {
                a[i].checked = false; 
            }           
        }
    </script>

</head>
<body>
    <form id="form1" runat="server">
        <div>
        </div>
        <table style="width: 813px" align="center">
            <tr>
                <td style="width: 75px">
                    企业名称：
                </td>
                <td>
                    <asp:TextBox ID="txtCompanyName" runat="server" Width="222px" onblur="javascript:if(/[']+/.test(this.value)){alert('企业名称含有非法字符！');this.value='';return false;}"></asp:TextBox>
                </td>
                <td>
                    注册号：
                </td>
                <td>
                    <asp:TextBox ID="txtUserCode_TB" runat="server" Width="145px" onblur="javascript:if(/[']+/.test(this.value)){alert('注册号含有非法字符!');this.value='';return false;}"></asp:TextBox>
                </td>
                <td>
                    <asp:Button ID="btselect" runat="server" CssClass="button_bg4" Text="查询" Width="70px" />
                </td>
            </tr>
            <tr>
                <td colspan="3">
                    <uc1:DbPageFlip ID="DbPageFlip1" runat="server" />
                    &nbsp; &nbsp;</td>
                <td>
                    <input id="Button5" type="button" value="全部取消" class="button_bg4" onclick="ClearAll();"
                        style="width: 70px" />
                    &nbsp;
                    <input id="Button4" type="button" value="本页全选" class="button_bg4" style="width: 70px"
                        onclick="javascript:SelectAll();" /></td>
                <td>
                    &nbsp;<input id="Submit1" class="button_bg4" name="selcompany" style="width: 70px"
                        type="submit" value="确定选取" /></td>
            </tr>
            <tr>
                <td colspan="5" rowspan="2" style="height: 114px">
                    <asp:GridView ID="GridView1" runat="server" Height="71px" Width="806px" AutoGenerateColumns="false"
                        OnRowCreated="GridView1_RowCreated" OnRowDataBound="GridView1_RowDataBound">
                        <Columns>
                            <asp:BoundField DataField="companyname" HeaderText="企业名称" />
                            <asp:BoundField DataField="UserCode" HeaderText="企业编码" />
                            <asp:TemplateField HeaderText="选择企业"></asp:TemplateField>
                            <asp:BoundField DataField="accountid" HeaderText="企业ID" />
                        </Columns>
                        <RowStyle CssClass="table_td" />
                        <AlternatingRowStyle CssClass="table_td2" />
                        <HeaderStyle CssClass="table_title" />
                    </asp:GridView>
                </td>
            </tr>
            <tr>
            </tr>
        </table>
    </form>
</body>
</html>
